<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/7/10
  Time: 14:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>drop table</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<p align="center" style="font-size: 20px;font-weight: bold;margin-top: 5%">  删除表  </p>
<div class="row">
    <div class="col-md-6 col-md-offset-3" style="border: 1px solid black" >
        <div class="row" style="margin-top: 5%;margin-bottom: 5%">
            <div class="col-md-4 col-md-offset-4">
                <form action="/web/TableSearch" method="post">
                    <input type="submit" value="搜索数据库" />
                </form>
                <span class="FZ">
                    <c:if test = "${!(empty Tables)}">
                        搜索完毕
                    </c:if>
                     <c:if test = "${(empty Tables)}">
                         <div><br/></div>
                     </c:if>
                    </span>

                <form action="/web/Table_Drop" method="post" enctype="multipart/form-data">
                    <select name="data">
                        <c:if test = "${(empty Tables)}">
                            <option>请先搜索数据库</option>
                        </c:if>
                        <c:forEach items="${sessionScope.Tables}" var="item">
                            <option value=${item}>${item}</option>
                        </c:forEach>
                        <input type="submit" value="删除" />
                    </select>
                </form>
            </div>
        </div>
    </div>
</div>
    <div class="row">
        <div class="col-md-3 col-md-offset-5" >
            <br/>
            <c:if test = "${!(empty Drop_flag)}">
                <span class="FZ">表已删除，请刷新页面后重新搜索</span>
            </c:if>

            <c:if test = "${(empty Drop_flag)}">
                <br/>
                <br/>
            </c:if>
        </div>
    </div>

    <br/>
    <div class="btn-group" role="group" aria-label="..." style="margin-left: 47%">
        <a type="button" class="btn btn-primary" href="Step2.jsp"> 返回步骤2 </a>
    </div>
    <br/>
</div>

</body>

<style>
    .FZ{
        text-align: center;
        font-size: 15px;
        color: black;
        font-weight: bold;
    }
</style>

</html>
